scoreboard players add #loop_counter temp 1
particle minecraft:sonic_boom ^ ^ ^
$execute positioned ~0.3 ~0.3 ~0.3 if entity @n[nbt={UUID:$(victim)},dx=-0.3,dy=-0.3,dz=-0.3] run return run scoreboard players reset #loop_counter temp
$execute unless score #loop_counter temp matches 25.. facing entity @n[nbt={UUID:$(victim)}] eyes positioned ^ ^ ^1.3 run return run function dab:system/bow_arrow/sculk_bow/sonic_boom_loop {victim:$(victim)}
scoreboard players reset #loop_counter temp